<%@taglib uri="http://www.springframework.org/tags" prefix="spring"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<html>
<head>
    <title>GWU Group Project - Admin Page</title>
</head>
<body>
 
<h2>Admin Tool</h2>
 
<h3>Users</h3>
<form>
<button onClick="this.form.action='createUserAdmin.html'; this.form.submit(); return true;">Create Account</button>
</form>

<c:if  test="${!empty userList}">
<table class="data">
<tr>
    <th>Username</th>
    <th>Password</th>
    <th>&nbsp;</th>

</tr>
<c:forEach items="${userList}" var="user">
    <tr>
        <td>${user.username}</td>
        <td>********</td>
        <td><a href="deleteUser/${user.id}">delete</a></td>
    </tr>
</c:forEach>
</table>
</c:if>
 
</body>
</html>